package com.hu.utils;

/**
 * @author .
 */
public class NotNull {
    public static boolean allNotNull(Object... os){
        for(Object o:os){
            if(o==null) {
                return false;
            }
        }
        return true;
    }

    public static boolean hasNull(Object... os){
        for(Object o:os){
            if(o==null) {
                return true;
            }
        }
        return false;
    }

    public static boolean notNull(Object o){
        return o != null;
    }
    public static boolean isNull(Object o){
        return o == null;
    }


    public static boolean notEmptyString(String o){
        return o!=null&& !"".equals(o);
    }

    public static boolean isEmptyString(String s){return !notEmptyString(s);}
}
